projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a14c7cb
)
label: Clear layout after setting GtkLabel::lines property
author
Benjamin Otte
<otte@redhat.com>
Mon, 8 Sep 2014 20:45:31 +0000
(22:45 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 15 Sep 2014 14:35:40 +0000
(16:35 +0200)
Otherwise the label will not pick up the property.
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index f0bf38fa210e37ec7972e39984f50a10a7f36ce8..2c9e00774e4855eefecd04c9097d24790fe53109 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-6846,6
+6846,7
@@
gtk_label_set_lines (GtkLabel *label,
if (priv->lines != lines)
{
priv->lines = lines;
+ gtk_label_clear_layout (label);
g_object_notify (G_OBJECT (label), "lines");
gtk_widget_queue_resize (GTK_WIDGET (label));
}